package com.wudimeng.syll.entity;

import java.io.Serializable;

/**
 * 所有post接口返回格式
 * */
public class CommonResult<T> implements Serializable{
	private int status = 200; //200为接口访问正常,400未访问接口遇到错误失败.
	private String message = null;
	private T data; //访问接口返回的对象
	
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	public CommonResult() {
	}
	public CommonResult(int status, String message, T data) {
		this.status = status;
		this.message = message;
		this.data = data;
	}
	
}
